import sys;
sys.path.append('..');
from by.vaukalak.core.events.Event import *;

class SocketEvent(Event):

    NEW_CONNECTION = "newConnection";
    CONNECTION_INTERRUPED = "connectionInterruped";
    DATA_RECIVED = "dataRecived";

    def __init__(self, name, connection, data=""):
         Event.__init__(self, name);
         self._connection = connection;
         self._data = data;

    @property
    def connection(self):
        return self._connection;

    @property
    def data(self):
        return self._data;